package huachenxing.mimi520.brower
{
	import com.cambright.lotusroot.CommandMap;
	import com.cambright.lotusroot.Module;
	
	import huachenxing.mimi520.brower.commands.EndBrowerCommand;
	import huachenxing.mimi520.brower.commands.StartBrowerCommand;
	import huachenxing.mimi520.brower.handlers.EndBrowerHandler;
	import huachenxing.mimi520.brower.handlers.StartBrowerHandler;
	import huachenxing.mimi520.brower.widgets.WorkWidget;
	
	public class Module extends com.cambright.lotusroot.Module
	{
		public var window:WorkWidget;
		
		override public function get commandMap():CommandMap
		{
			var map:CommandMap = new CommandMap();
			map.add(StartBrowerCommand, StartBrowerHandler);
			map.add(EndBrowerCommand, EndBrowerHandler);
			return map;
		}
		
		override protected function initialize():void
		{
			window = pushWidget(WorkWidget) as WorkWidget;
		}
	}
}



